//
//  SEGScratchCardView.h
//  ExcellentHome
//
//  Created by 揭婧雯 on 16/11/23.
//  Copyright © 2016年 陈区. All rights reserved.
//

#import "SEGImageMaskView.h"
#import <UIKit/UIKit.h>
//@protocol SEGScratchViewDelegate <NSObject>
////立即查看
//- (void)clickViewSoon;
//@end

typedef void (^SEGAwardScratchCradViewCallBack)(NSDictionary *data);

//刮奖视图
@interface SEGScratchCardView : UIView

//@property (nonatomic, weak) id<SEGScratchViewDelegate> delegate;
/**
 回调block
 */
@property (nonatomic, copy) SEGAwardScratchCradViewCallBack callback;

@property (nonatomic, retain) UIImageView* bgView;
@property (nonatomic, retain) UIButton* closeButton;
@property (nonatomic, retain) UIImageView* cardBgView;
@property (nonatomic, retain) SEGImageMaskView* cardFrontView;
@property (nonatomic, retain) UIView* prizeContentView;
@property (nonatomic, retain) UILabel* titleLabel;
@property (nonatomic, retain) UILabel* nameLabel;
@property (nonatomic, retain) UIButton* goButton;

@property (nonatomic, copy) NSString* goUrlString;
@property (nonatomic, copy) NSString* prizeType;
@property (nonatomic, copy) NSDictionary* dict;

- (void)updateViewWithDict:(NSDictionary*)dict callBack:(SEGAwardScratchCradViewCallBack)callback;
@end
